<cfcomponent displayname="Log Factory" output="false">
	<cffunction name="init" access="public" returntype="Any" output="false">
		<cfargument name="ESAPI" required="true" />
		
		<cfset variables.ESAPI = arguments.ESAPI>
		<cfset variables.logLevel =  ESAPI.SecurityConfiguration().getProperty('loglevel') />
		
		<cfreturn this />
	</cffunction>
	
	<cffunction name="getLogger" access="public" returntype="any" output="false">
		<cfargument name="type" type="String" required="true" hint="Logger type" />
		
		<cfreturn createObject('component','cfesapi.org.owasp.esapi.Logger').init(arguments.type, variables.logLevel, ESAPI) />
	</cffunction>
</cfcomponent>